package com.exartisan.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class GalleryContent implements Parcelable {
	private long contentID;
	private String resourceUrl;
	private String description;
	private int type;
	private int likes;
	private int comments;

	public static final Parcelable.Creator<GalleryContent> CREATOR = new Parcelable.Creator<GalleryContent>() {
		public GalleryContent createFromParcel(Parcel in) {
			return new GalleryContent(in);
		}

		public GalleryContent[] newArray(int size) {
			return new GalleryContent[size];
		}
	};

	public GalleryContent(long contentID, String resourceUrl,
			String description, int type) {
		super();
		this.contentID = contentID;
		this.resourceUrl = resourceUrl;
		this.description = description;
		this.type = type;
	}

	public long getContentID() {
		return contentID;
	}

	public void setContentID(long contentID) {
		this.contentID = contentID;
	}

	public String getResourceUrl() {
		return resourceUrl;
	}

	public void setResourceUrl(String resourceUrl) {
		this.resourceUrl = resourceUrl;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getLikes() {
		return likes;
	}

	public void setLikes(int likes) {
		this.likes = likes;
	}

	public int getComments() {
		return comments;
	}

	public void setComments(int comments) {
		this.comments = comments;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeLong(contentID);
		dest.writeString(resourceUrl);
		dest.writeString(description);
		dest.writeInt(type);
		dest.writeInt(likes);
		dest.writeInt(comments);
	}

	private GalleryContent(Parcel in) {
		contentID = in.readLong();
		resourceUrl = in.readString();
		description = in.readString();
		type = in.readInt();
		likes = in.readInt();
		comments = in.readInt();
	}
}
